#ifndef _NAMESERVER_H_
#define _NAMESERVER_H_

#include <defs.h>

// Request types
#define WHO_IS_REQUEST        0
#define REGISTER_AS_REQUEST   1

// Reply errors
#define ERROR_TASK_NOT_FOUND  -1
#define ERROR_TABLE_FULL      -2

typedef struct __name_req {
	int type;
	char name[MAX_NAME_LEN];
} name_req;

void NameServer();

#endif // _NAMESERVER_H_
